import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 新增费用
  addCost: (query) => api.post(`${config.interfaces.type5}portfolio-server/costmaintenance/add`, query),
  // 删除费用
  deleteCost: (query) => api.get(`${config.interfaces.type5}portfolio-server/costmaintenance/delete`, query),
  // 编辑费用
  editCost: (query) => api.post(`${config.interfaces.type5}portfolio-server/costmaintenance/edit`, query),
  // 查询费用列表
  findAllCost: (query) => api.post(`${config.interfaces.type5}portfolio-server/costmaintenance/findAll`, query),
};
